﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fx.Data
{
    public class Result
    {
        public static readonly Result Empty = new Result();

        #region Properties
        
        public IList<string> Errors { get; set; }

        public bool HasError
        {
            get
            {
                return Errors != null && Errors.Count > 0;
            }
        }

        public object Data { get; set; }

        #endregion

        public Result()
        {
            Errors = new List<string>();
        }
    }
}
